<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019-02-22
 * Time: 9:19
 */

namespace app\index\validate;


use think\Validate;

class Existence extends Validate
{
    protected $rule = [
        'u_id'             => 'require',
        'u_email'         => 'require|number|length:11',

    ];

    protected $message = [
        'u_id.require'             => '用户ID 不能为空',
        'u_email.require'           => '请输入手机号',
        'u_email.number'            => '手机号格式错误',
        'u_email.length'            => '手机号长度错误',

    ];
}